﻿using System;

namespace DomainModel
{
    public class Lesson : BaseEntity
    {
        public virtual DateTime Date { get; set; }
        public virtual User Student { get; set; }
        public virtual TimetableUnit TimetableUnit { get; set; }
        public virtual string Mark { get; set; }

        protected Lesson() { }

        public Lesson(DateTime date, User student, TimetableUnit timetableUnit)
            : this()
        {
            Date = date;
            Student = student;
            TimetableUnit = timetableUnit;
        }
    }
}
